
import pandas as pd


def del_cold(df: pd.DataFrame, cold_threshold: int, column_name: str):
    r = []
    groups = df.groupby(column_name)
    for g in groups:
        if len(g[1]) > cold_threshold:
            r.append(g[1])
    return pd.concat(r)
